package org.dromara.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 商品图片对象 product_img
 *
 * @author Mr.Zhou
 * @date 2024-10-21
 */
@Data
@TableName("product_img")
public class ProductImg implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     *
     */
    private Long productId;

    /**
     *
     */
    private String imgUrl;

    /**
     * 图片类型 0 - 商品图片  1 - 商品轮播图
     */
    private Integer imgType;

    /**
     *
     */
    private Integer sort;


    @TableField(exist = false)
    private String imgUrlPath;
}
